<template>

<embed
              id="flashelement"
              width="100%"
              height="100%"
              :src="src"
              quality="high"
              allowscriptaccess="never"
              allowfullscreen="true"
              mode="transparent"
              type="application/x-shockwave-flash"
              wmode="transparent"
          >
          <object type="application/x-shockwave-flash" :data="src"
                  style="overflow: auto; width:100%; height:100%;background: #fff">
              <param name="movie" :value="src"/>
              <param name="wmode" value="transparent"/>
          </object>

</template>
<script setup lang="ts">
    import { ref } from 'vue'
    defineProps({
        src: String,
    })
    defineExpose({
        setFlash,
        clearFlash
    })
    const flash = ref({url:''})
    function setFlash(url:string){
        flash.value.url = url
    }
    function clearFlash(){
        flash.value.url = ''
    }

</script>

<style lang="scss" scoped></style>